<?php

 class Inicio_model extends CI_Model {
   
    function __construct(){   
        parent::__construct();
        $this->config->load('database_tables');
        $this->_table = $this->config->item('dbtables');
    }
	
    function getLugares(){
        //$this->db->like('prv_nombre', $this->input->post('term')); 
        $query = $this->db->get($this->_table['zon_provincia']);
        $data = array();
        foreach ($query->result_array() as $value){
            $data[$value['prv_idprovincia']] = $value['prv_nombre'];
        }
        return $data;
    }
}